package com.interpreter.interpreter;

import java.util.HashMap;

public class SubExpression extends SymbolExpression{

    public SubExpression(Expression left, Expression right) {
        super(left, right);
    }


    //计算出左右两边相减的结果
    @Override
    public int interpreter(HashMap<String, Integer> argMap) {
        return left.interpreter(argMap) - right.interpreter(argMap) ;
    }
}
